export default {
	/**
	 * 把时间戳改成看得懂的
	 * @param date 时间戳
	 * @returns {string}
	 */
	getDateSting(date) {
		let now = new Date(date),
			y = now.getFullYear(),
			m = now.getMonth() + 1,
			d = now.getDate();
		return y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d) + " " + now.toTimeString().substr(0, 8);
	}
}